home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14093 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: nntp.teleport.com!usenet
  2. From: GHouck <hksys@teleport.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: file reading help
  5. Date: 11 Apr 1996 20:35:00 GMT
  6. Organization: systems hk
  7. Message-ID: <4kjqdk$34m@nadine.teleport.com>
  8. References: <wd5axYAJAKyZ088yn@egnatia.ee.auth.gr>
  9. NNTP-Posting-Host: ip-pdx09-42.teleport.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
  14.  
  15. Theodore Chronis <tchronis@egnatia.ee.auth.gr> wrote:
  16. >I am learning the basic principles of Information Theory , and i want to
  17. >count the entropy of certain binary files.
  18. >So i need an utilitie that will read any file , storing all bytes in an array
  19. >of length = Size of the file .
  20. >example let suppose that :
  21. ><file test.dat>
  22. >fglhefoghe vjeopjejge gjergjerj erg
  23. >
  24. >Then the C program will do the following procedure:
  25. >a[1]=f
  26. >a[2]=g
  27. >a[3]=l
  28.  
  29. Is there a question in the above?  How about files that exceed your 
  30. available memory?  More information is needed.
  31. Yours, Geoff Houck
  32.  
  33.